#pragma once
#include <widgets/SComboBox.h>

enum NetStatus
{
	UnAvaiable,
	VeryBad,
	Bad,
	Good
};

struct ServerData
{
	QString name;
	NetStatus	status = UnAvaiable;
	bool		suggested = false;
};

class ServerCombox : public SComboBox
{
public:
	ServerCombox(QWidget* p);
	virtual void showPopup() override;
	virtual void hidePopup() override;

protected:
	virtual void paintEvent(QPaintEvent* e) override;
private:
	bool	m_showPopup = false;
};